from setuptools import setup, Extension
import pybind11

# 定义扩展模块
ext_modules =Extension(
        'MATRIX_INV_DET',
        sources=['MATRIX_INV_DET.cpp'],
        include_dirs=[pybind11.get_include(),
                    "C:/Users/18677/Desktop/cpp_extend_pyd/eigen-3.4.0"],  # 添加Eigen和pybind11头文件路径
        language='c++',
        extra_compile_args=['--std=c++17', '--O2']  # 优化标志

    )

setup(
    name='MATRIX_INV_DET',
    version='0.1',
    ext_modules=[ext_modules],
)

# 编译命令:python setup.py build_ext --inplace